import {State} from "./enums";

export function randomState(): State {
  return Math.random() >= 0.5 ? State.IN : State.OUT
}

export function turn(val: State): State {
  return val == State.IN ? State.OUT : State.IN
}
